class Rectangle:
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def get_peri(self):
        return (self.x + self.y) * 2

    def get_area(self):
        return self.x * self.y


if __name__ == "__main__":
    rect = Rectangle(3, 4)
    print(rect.get_area())
    print(rect.get_peri())